home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v10n09.arc / CMD.BAT < prev    next >
DOS Batch File  |  1991-04-16  |  459b  |  17 lines

  1. @ECHO off
  2. REM Create D:\BAT\CMDX.BAT, a batch file to repeat the command
  3. REM contained in arguments #1 to #9.
  4. IF [%1]==[] D:\BAT\CMDX
  5. IF %1==? GOTO type
  6. SHIFT
  7. IF NOT [%9]==[] GOTO toomany
  8. ECHO @ECHO OFF >D:\BAT\CMDX.BAT
  9. ECHO %0 %1 %2 %3 %4 %5 %6 %7 %8 >>D:\BAT\CMDX.BAT
  10. D:\BAT\CMDX.BAT
  11. :toomany
  12. ECHO CMD.BAT: only 9 arguments allowed.
  13. :type
  14. ECHO CMDX.BAT contains these two lines:
  15. ECHO *================================*
  16. TYPE D:\BAT\CMDX.BAT
  17.